package com.xormedia.httpservice;

import com.beust.jcommander.JCommander;
import com.xormedia.httpservice.model.ServiceArgs;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Hello world!
 */
public class App {
  private static final Logger logger = LoggerFactory.getLogger(App.class);

  public static void main(String[] args) throws Exception {
    ServiceArgs serviceArgs = new ServiceArgs();
    JCommander.newBuilder().addObject(serviceArgs).build().parse(args);

    SimpleHttpServer httpServer = new SimpleHttpServer(serviceArgs);
    httpServer.start();
  }
}
